package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.CatalogsAttention;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CatalogsAttentionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CatalogsAttention record);

    CatalogsAttention selectByPrimaryKey(Long id);

    List<CatalogsAttention> selectAll();

    int updateByPrimaryKey(CatalogsAttention record);

    void deleteChose(@Param("catalogsId") Long catalogsId, @Param("userId") Long userId);

    void insertChose(@Param("catalogsId") Long catalogsId, @Param("userId") Long userId);

    int selectLikeCountByCommentId(Long catalogsId);

    CatalogsAttention selectByCatalogsIdAndUserId(@Param("catalogsId") Long catalogsId, @Param("userId") Long userId);
}